﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace SmsUI
{
    public partial class OtherSettingForm : DevExpress.XtraEditors.XtraForm
    {
        public OtherSettingForm()
        {
            InitializeComponent();
            this.Load += new EventHandler(OtherSettingForm_Load);

        }

        void OtherSettingForm_Load(object sender, EventArgs e)
        {
            txtCount.Text = ConfigManager.GetValue("factoryCount");
            txtPhone.Text = ConfigManager.GetValue("factoryNum");
        }

        private void btnConfirm_Click(object sender, EventArgs e)
        {
            ConfigManager.SetValue("factoryCount", txtCount.Text);
            ConfigManager.SetValue("factoryNum", txtPhone.Text);
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}